#include "visit.h"

void visit_blockItem(ASTNode* node, SymbolTable* s, Module* m, BasicBlock* bb){
    if(!node) return;
    if(node -> children.size() == 0) return;

    
    ASTNode* child = node -> children[0];
    if(child -> type == "decl"){
        visit_decl(child, s, m, bb);
    }
    else if(child -> type == "stmt"){
        // visit_stmt(child, s, bb);
    }

    visit_blockItem(node -> children[1], s, m, bb);
}